package com.mall.mallDemo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.mall.mallDemo.pojo.Product;

import java.awt.print.Book;
import java.util.List;
import java.util.Map;

public interface ProductService extends IService<Product> {

    public List<Product> getProductByCategoryId(Integer categoryId);
    public Product getProductById(String productId);
    public List<Product> getHotProduct();
    public PageInfo<Product> getProductByPage(String currentPage, String pageSize, String categoryId);
    public List<Product> getProductBySearch(String productName);
    public PageInfo<Product> getProductByPageSearch(String currentPage, String pageSize, String productName);
    public PageInfo<Product> getProductByPageSearch(String currentPage, String pageSize, String productName,Integer beginPrice,Integer endPrice);
}
